package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TCkOrdersMapper;
import com.ruoyi.system.domain.TCkOrders;
import com.ruoyi.system.service.ITCkOrdersService;

/**
 * 出库单表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-04
 */
@Service
public class TCkOrdersServiceImpl implements ITCkOrdersService 
{
    @Autowired
    private TCkOrdersMapper tCkOrdersMapper;

    /**
     * 查询出库单表
     * 
     * @param orderId 出库单表主键
     * @return 出库单表
     */
    @Override
    public TCkOrders selectTCkOrdersByOrderId(String orderId)
    {
        return tCkOrdersMapper.selectTCkOrdersByOrderId(orderId);
    }

    /**
     * 查询出库单表列表
     * 
     * @param tCkOrders 出库单表
     * @return 出库单表
     */
    @Override
    public List<TCkOrders> selectTCkOrdersList(TCkOrders tCkOrders)
    {
        return tCkOrdersMapper.selectTCkOrdersList(tCkOrders);
    }

    /**
     * 新增出库单表
     * 
     * @param tCkOrders 出库单表
     * @return 结果
     */
    @Override
    public int insertTCkOrders(TCkOrders tCkOrders)
    {
        return tCkOrdersMapper.insertTCkOrders(tCkOrders);
    }

    /**
     * 修改出库单表
     * 
     * @param tCkOrders 出库单表
     * @return 结果
     */
    @Override
    public int updateTCkOrders(TCkOrders tCkOrders)
    {
        return tCkOrdersMapper.updateTCkOrders(tCkOrders);
    }

    /**
     * 批量删除出库单表
     * 
     * @param orderIds 需要删除的出库单表主键
     * @return 结果
     */
    @Override
    public int deleteTCkOrdersByOrderIds(String[] orderIds)
    {
        return tCkOrdersMapper.deleteTCkOrdersByOrderIds(orderIds);
    }

    /**
     * 删除出库单表信息
     * 
     * @param orderId 出库单表主键
     * @return 结果
     */
    @Override
    public int deleteTCkOrdersByOrderId(String orderId)
    {
        return tCkOrdersMapper.deleteTCkOrdersByOrderId(orderId);
    }
}
